<?php

/**
 * 
 * Generates html of div which would
 * look and act as a button for "Follow"/"Unfollow"
 * actions
 *
 */
class tplFollowButton extends \StudyBuddy\Template\Template
{

	/**
	 * IMPORTANT 'type' should always
	 * be 2 chars long and one of these:
	 * fq, fu, ft - for follow question, follow user
	 * or follow tag
	 * 
	 * @var array
	 */
	protected static $vars = array(
            'id' => '', // 1
            'icon' => '', //2
            'label' => 'Follow', //3
            'class' => 'follow', //4
            'type' => '', //5
            'title' => '' // 6
	);
	// id="%5$s_%1$s"
	protected static $tpl_ = '<div StudyBuddy:ftype="%5$s" StudyBuddy:follow="%1$s" class="mo btnfollow ajax ttt rounded4 %4$s" title="%6$s">
                                    <span class="icoc %2$s">&nbsp;</span>
                                    <span class="flabel">%3$s</span>
                                </div>';
        protected static $tpl = '<div StudyBuddy:ftype="%5$s" StudyBuddy:follow="%1$s" class="mo btnfollow ajax ttt %4$s" title="%6$s">
                                    <span class="icoc %2$s">&nbsp;</span>
                                </div>';
		
}
